const express = require('express')
// 路由对象
const goodRouter = express.Router()

const goodList = [
    {id:1,name:'回锅肉',price:18.88, num:10},
    {id:2,name:'鱼香肉丝',price:28.75, num:5}
]

goodRouter.get('/list',(req,res) => {
    res.send({
        goodList
    })
})


module.exports = {goodRouter}